#-------------------------------------------------------------------------------
#	file Makefile
#	brief
#		Buffer printer test (p_mem)
#
#	$Id: Makefile 248 2014-03-23 12:26:47Z ac.verbeck@gmail.com $
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#	Copyright and Disclaimer Notice
#
#	Copyright (c) 2013-2014 A.C. Verbeck
#
#	This file is part of p_mem
#
#	p_mem is free software: you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation, either version 3 of the License, or
#	(at your option) any later version.
#
#	p_mem is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.
#
#	You should have received a copy of the GNU General Public License
#	along with p_mem.
#	If not, see <http://www.gnu.org/licenses/>.
#
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#	Environment
#-------------------------------------------------------------------------------
CC			= g++
CPPFLAGS	= -Wall -Werror -ggdb -DBLD_DEBUG
LDLIBS		= -lpopt

#-------------------------------------------------------------------------------
#	Build environment
#-------------------------------------------------------------------------------
BLD_TARGET	= bi
BLD_VERSION	= 1.00

#-------------------------------------------------------------------------------
#	Targets:
#		Development: spr-01
#-------------------------------------------------------------------------------
TARGET		= p_mem

#-------------------------------------------------------------------------------
#	Object files
#-------------------------------------------------------------------------------
OBJS_BI		= bi.o
OBJS_TARGET	= p_mem.o

#-------------------------------------------------------------------------------
#	Rules
#-------------------------------------------------------------------------------
.PHONY:	all clean format
all:		$(TARGET)

release:	$(RELEASE)

clean:;		$(RM) *.o
			$(RM) *.bak
			$(RM) *.exe
			$(RM) *.cpp.orig
			$(RM) *.h.orig
			$(RM) *.wav

format:;	astyle --pad-header --unpad-paren --style="k&r" --indent=tab --lineend=windows --recursive "*.cpp" "*.h"

#-------------------------------------------------------------------------------
#	Dependencies
#-------------------------------------------------------------------------------
bldinfo:;	$(RM) bi.cpp bi.h

bi.cpp:
			bldinfo --cpp --output=$(BLD_TARGET) --project=$(TARGET) --version=$(BLD_VERSION)		

demo.cpp:	bi.cpp

$(TARGET):	$(OBJS_BI) $(OBJS_TARGET)

#
#	End: Makefile
#
